package com.gym.emp.dao;

import com.gym.emp.entity.Emp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author ming
 * 2021/11/18
 * description:
 */
public interface EmpMapper {

    /**
     *@author:ming
     *@Date: 2021/11/18
     *@description:多个对象用list
     */
    List<Emp> getAllEmp();

    int addEmp(Emp emp);

    int updateEmp(Emp emp);

    int delEmp(@Param("eno") int eno);

    Emp getEmpByName(@Param("ename") String ename);

    Emp getEmpByEno(@Param("eno") int eno);

    List<Emp> getEmpByPhone(@Param("phone") String phone);



}
